package com.mg.order.pojo.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.mg.common.pojo.auto.generate.Promotion;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
@TableName("tb_promotion")
public class PromotionPo {
    public final static boolean VALID_STATUS=true;
    public final static boolean INVALID_STATUS=false;
    /**
     * 优惠卷id
     */
    private String id;

    /**
     * 优惠额度
     */
    private Integer quota;

    /**
     * 1:有效 0:失效
     */
    private Boolean status;

    /**
     * 用户id
     */
    private Long uid;

    public PromotionPo() {
    }

    public PromotionPo(String id, Long uid) {
        this.id = id;
        this.uid = uid;
    }

}
